package com.h3c.nem.mapstruct;

import com.h3c.nem.dto.TbWorkerExperienceDTO;
import com.h3c.nem.entity.TbWorkerExperience;
import com.h3c.nem.vo.TbWorkerExperienceVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author chenyifan
 * @date 2022/6/6 15:59
 */
@Mapper
public interface TbWorkerExperienceMapstruct {

    TbWorkerExperienceMapstruct INSTANCE = Mappers.getMapper(TbWorkerExperienceMapstruct.class);

    /**
     * DTO列表转成实体类列表
     * @param workerExperienceDTOS
     * @return
     */
    List<TbWorkerExperience> DTOList2EntityList(List<TbWorkerExperienceDTO> workerExperienceDTOS);

    /**
     * DTO列表转成实体类列表
     * @param experienceList
     * @return
     */
    List<TbWorkerExperienceVO> entityList2VOList(List<TbWorkerExperience> experienceList);
}
